#ifndef AREAFORM_H
#define AREAFORM_H

#include <QWidget>

namespace Ui {
class AreaForm;
}

class AreaForm : public QWidget
{
    Q_OBJECT

public:
    explicit AreaForm(QWidget *parent = nullptr);
    ~AreaForm();

    void UpdateShowType(int type=0);
    
    // 设置当前的物镜倍数
    void setObjectiveMagnification(int magnification);
    
private:
    Ui::AreaForm *ui;
    int m_currentMagnification; // 当前的物镜倍数
    int m_currentLevel; // 当前等级
    void updateObjectiveParams(int magnification, int level);
protected:
    virtual void paintEvent(QPaintEvent*event) override;

private slots:
    void on_toolButton_contractExpand_clicked(bool checked);
};

#endif // AREAFORM_H
